/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-24
 * Time:10:58
 */
public class TestDemo7 {
    public static void main(String[] args) {
        for (int i = 1000; i <= 2000; i++) {
            if(i%4==0&&i%100!=0){
                System.out.println(i);
            }else if(i%400==0){
                System.out.println(i);
            }
        }
    }
}
